<?php
function smarty_function_floor($params, &$smarty)
{
  $returnVal = (array_key_exists('value', $params)) ? $params['value']:0;
  $returnVal = floor($returnVal);
  $smarty->assign((array_key_exists('return', $params)) ? $params['return']:'floor',$returnVal);
}
?>
